# coding:utf-8
import turtle


def drawMainRegion(width, height):
    turtle.penup()
    turtle.goto(-width / 2, -height / 2)
    turtle.pendown()
    turtle.pencolor("red")
    turtle.fillcolor("red")
    turtle.begin_fill()
    turtle.forward(width)
    turtle.left(90)
    turtle.forward(height)
    turtle.left(90)
    turtle.forward(width)
    turtle.left(90)
    turtle.forward(height)
    turtle.end_fill()


def drawStart(headAngle, x, y, size):
    turtle.setheading(headAngle)
    initAngle = 36
    turtle.penup()
    turtle.goto(x, y)
    turtle.pendown()
    turtle.pencolor("gold")
    turtle.fillcolor("gold")
    turtle.begin_fill()
    turtle.left(initAngle)
    turtle.forward(size)
    for i in range(0, 4):
        turtle.left(180 - initAngle)
        turtle.forward(size)
    turtle.end_fill()


if __name__ == "__main__":
    turtle.Screen()
    turtle.setup(600, 400)
    turtle.shape("blank")
    turtle.speed(10)

    drawMainRegion(600, 400)
    starParams = [(0, -260, 80, 70), (-30, -180, 150, 15),
                  (30, -150, 120, 15), (0, -150, 90, 15), (-30, -180, 70, 15)]
    for starParam in starParams:
        drawStart(starParam[0], starParam[1], starParam[2], starParam[3])

    turtle.done()
